import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by 14229 on 2020/2/27.
 */
public class Test01 {
    public static void main(String[] args) {

        Date d = new Date();
        SimpleDateFormat sim1 = new SimpleDateFormat("现在的时间是 yyyy-MM-dd HH-mm-ss");
        String format1 = sim1.format(d);
        System.out.println(format1);

        SimpleDateFormat sim2 = new SimpleDateFormat("今天是今年的第D天");
        String format2 = sim2.format(d);
        System.out.println(format2);

        SimpleDateFormat sim3 = new SimpleDateFormat("今天是星期E");
        String format3 = sim3.format(d);
        System.out.println(format3);
    }
}
